#ifndef VIDEOQUALITYSETTINGDIALOG_H
#define VIDEOQUALITYSETTINGDIALOG_H

#include <QDialog>

namespace Ui {
    class VideoQualitySettingDialog;
}

class EncoderOption;
class VideoQualitySettingDialog : public QDialog
{
    Q_OBJECT

public:
    explicit VideoQualitySettingDialog(EncoderOption *,QWidget *parent = 0);
    ~VideoQualitySettingDialog();

    typedef enum {
	DirectionRead,
	DirectionWrite
    } SyncDirection;

private:
    Ui::VideoQualitySettingDialog *ui;
    EncoderOption *m_option;

    void syncConfig(SyncDirection);


private slots:
    void on_btnKeepOriginal_clicked(bool checked);
    void on_buttonBox_rejected();
    void on_buttonBox_accepted();

    void onOptionValueChanged(const QString &, const QVariant &, QObject *);
};

#endif // VIDEOQUALITYSETTINGDIALOG_H
